﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000A25 RID: 2597
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LeaveMapRotationRegionCsReq : IMessage<LeaveMapRotationRegionCsReq>, IMessage, IEquatable<LeaveMapRotationRegionCsReq>, IDeepCloneable<LeaveMapRotationRegionCsReq>, IBufferMessage
	{
		// Token: 0x170020CE RID: 8398
		// (get) Token: 0x0600744D RID: 29773 RVA: 0x00136BD9 File Offset: 0x00134DD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LeaveMapRotationRegionCsReq> Parser
		{
			get
			{
				return LeaveMapRotationRegionCsReq._parser;
			}
		}

		// Token: 0x170020CF RID: 8399
		// (get) Token: 0x0600744E RID: 29774 RVA: 0x00136BE0 File Offset: 0x00134DE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LeaveMapRotationRegionCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170020D0 RID: 8400
		// (get) Token: 0x0600744F RID: 29775 RVA: 0x00136BF2 File Offset: 0x00134DF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LeaveMapRotationRegionCsReq.Descriptor;
			}
		}

		// Token: 0x06007450 RID: 29776 RVA: 0x00136BF9 File Offset: 0x00134DF9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionCsReq()
		{
		}

		// Token: 0x06007451 RID: 29777 RVA: 0x00136C01 File Offset: 0x00134E01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionCsReq(LeaveMapRotationRegionCsReq other) : this()
		{
			this.motion_ = ((other.motion_ != null) ? other.motion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007452 RID: 29778 RVA: 0x00136C36 File Offset: 0x00134E36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LeaveMapRotationRegionCsReq Clone()
		{
			return new LeaveMapRotationRegionCsReq(this);
		}

		// Token: 0x170020D1 RID: 8401
		// (get) Token: 0x06007453 RID: 29779 RVA: 0x00136C3E File Offset: 0x00134E3E
		// (set) Token: 0x06007454 RID: 29780 RVA: 0x00136C46 File Offset: 0x00134E46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo Motion
		{
			get
			{
				return this.motion_;
			}
			set
			{
				this.motion_ = value;
			}
		}

		// Token: 0x06007455 RID: 29781 RVA: 0x00136C4F File Offset: 0x00134E4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LeaveMapRotationRegionCsReq);
		}

		// Token: 0x06007456 RID: 29782 RVA: 0x00136C5D File Offset: 0x00134E5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LeaveMapRotationRegionCsReq other)
		{
			return other != null && (other == this || (object.Equals(this.Motion, other.Motion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007457 RID: 29783 RVA: 0x00136C90 File Offset: 0x00134E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.motion_ != null)
			{
				num ^= this.Motion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007458 RID: 29784 RVA: 0x00136CCC File Offset: 0x00134ECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007459 RID: 29785 RVA: 0x00136CD4 File Offset: 0x00134ED4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600745A RID: 29786 RVA: 0x00136CDD File Offset: 0x00134EDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.motion_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Motion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600745B RID: 29787 RVA: 0x00136D10 File Offset: 0x00134F10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.motion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Motion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600745C RID: 29788 RVA: 0x00136D50 File Offset: 0x00134F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LeaveMapRotationRegionCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.motion_ != null)
			{
				if (this.motion_ == null)
				{
					this.Motion = new MotionInfo();
				}
				this.Motion.MergeFrom(other.Motion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600745D RID: 29789 RVA: 0x00136DA4 File Offset: 0x00134FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600745E RID: 29790 RVA: 0x00136DB0 File Offset: 0x00134FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 106U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.motion_ == null)
					{
						this.Motion = new MotionInfo();
					}
					input.ReadMessage(this.Motion);
				}
			}
		}

		// Token: 0x04002C69 RID: 11369
		private static readonly MessageParser<LeaveMapRotationRegionCsReq> _parser = new MessageParser<LeaveMapRotationRegionCsReq>(() => new LeaveMapRotationRegionCsReq());

		// Token: 0x04002C6A RID: 11370
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002C6B RID: 11371
		public const int MotionFieldNumber = 13;

		// Token: 0x04002C6C RID: 11372
		private MotionInfo motion_;
	}
}
